package com.zzyl.mapper;

import com.zzyl.entity.UserRole;
import com.zzyl.vo.RoleVo;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.data.repository.query.Param;

import java.util.List;

@Mapper
public interface UserRoleMapper {
    List<UserRole> queryByRoleId(Long roleId);

    void insertBatch(@Param("list") List<UserRole> userRoleList);

    List<RoleVo> queryByUserIds(@Param("userIds") List<Long> userIds);

    List<Long> queryUserIdByRoleName(String roleName);
}
